///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep  8 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "noname.h"

#include "Resources.h"
#include "ToolMenuIDs.h"

///////////////////////////////////////////////////////////////////////////


MyFrame1::MyFrame1( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	m_menubar1 = new wxMenuBar( 0 );
	fileMenuItem = new wxMenu();

	fileSaveMenuItem = fileMenuItem->Append(wxID_SAVE, wxT("M_SAVE"));
	fileSaveAsMenuItem = fileMenuItem->Append(wxID_SAVEAS, wxT("M_SAVEAS"));
	fileSaveAllMenuItem = fileMenuItem->Append(TOOL_SAVEALL, wxT("M_SAVEALL"));
	fileUploadMenuItem = fileMenuItem->Append(TOOL_UPLOAD, wxT("M_UPLOAD"));
	
	wxMenuItem* m_separator1 = fileMenuItem->AppendSeparator();
	
	fileExitMenuItem = fileMenuItem->Append(wxID_EXIT, wxT("M_EXIT"));
	
	m_menubar1->Append( fileMenuItem, wxT("M_FILE") ); 
	
	editMenuItem = new wxMenu();
	editUndoMenuItem = editMenuItem->Append(wxID_UNDO, wxT("M_UNDO"));
	editRedoMenuItem = editMenuItem->Append(wxID_REDO, wxT("M_REDO"));
	
	wxMenuItem* m_separator5 = editMenuItem->AppendSeparator();
	
	editToolMenuItem = new wxMenu();
	editMenuItem->Append( -1, wxT("M_TOOL"), editToolMenuItem );
	
	m_menubar1->Append( editMenuItem, wxT("M_EDIT") ); 
	
	viewMenuItem = new wxMenu();
	viewModeMenuItem = new wxMenu();

	viewModePerspectiveMenuItem = viewModeMenuItem->Append(TOOL_PERSPECTIVE, wxT("M_PERSPECTIVE"), wxT(""), wxITEM_CHECK);
	viewModeTextureMenuItem = viewModeMenuItem->Append(TOOL_ORTHOGRAPHIC, wxT("M_TEXTURE"), wxT(""), wxITEM_CHECK);
	viewModeHybridMenuItem = viewModeMenuItem->Append(TOOL_HYBRID, wxT("M_HYBRID"), wxT(""), wxITEM_CHECK);
	
	viewMenuItem->Append( -1, wxT("M_MODE"), viewModeMenuItem );
	
	wxMenuItem* m_separator7;
	m_separator7 = viewMenuItem->AppendSeparator();
	
	view3DMenuItem = new wxMenu();
	view3DAnimateMenuItem = view3DMenuItem->Append(TOOL_ANIMATE, wxT("M_ANIMATE"), wxT(""), wxITEM_CHECK);
	view3DFollowCursorMenuItem = view3DMenuItem->Append(TOOL_FOLLOW_CURSOR, wxT("M_FOLLOWCUR"), wxT(""), wxITEM_CHECK);
	view3DGrassMenuItem = view3DMenuItem->Append(TOOL_GRASS, wxT("M_GRASS"), wxT(""), wxITEM_CHECK);
	view3DGhostMenuItem = view3DMenuItem->Append(TOOL_GHOST, wxT("M_GHOST"), wxT(""), wxITEM_CHECK);
	
	view3DMultisamplingMenuItem = new wxMenu();
	view3DMultisampling0xMenuItem = view3DMultisamplingMenuItem->Append(TOOL_MULTISAMPLING_0, wxT("0x"), wxT(""), wxITEM_CHECK);
	view3DMultisampling1xMenuItem = view3DMultisamplingMenuItem->Append(TOOL_MULTISAMPLING_1, wxT("1x"), wxT(""), wxITEM_CHECK);
	view3DMultisampling2xMenuItem = view3DMultisamplingMenuItem->Append(TOOL_MULTISAMPLING_2, wxT("2x"), wxT(""), wxITEM_CHECK);
	view3DMultisampling4xMenuItem = view3DMultisamplingMenuItem->Append(TOOL_MULTISAMPLING_4, wxT("4x"), wxT(""), wxITEM_CHECK);
	view3DMultisampling8xMenuItem = view3DMultisamplingMenuItem->Append(TOOL_MULTISAMPLING_8, wxT("8x"), wxT(""), wxITEM_CHECK);
	
	view3DMenuItem->Append( -1, wxT("M_MULTISAMPLING"), view3DMultisamplingMenuItem );
	
	viewMenuItem->Append( -1, wxT("M_3D"), view3DMenuItem );
	
	view2DMenuItem = new wxMenu();
	view2DAlphaCheckerboardMenuItem = view2DMenuItem->Append(TOOL_ALPHA_CHECKERBOARD, wxT("M_ALPHACHECKER"), wxT(""), wxITEM_CHECK);
	
	view2DOverlayMenuItem = new wxMenu();
	view2DOverlayEnableMenuItem = view2DOverlayMenuItem->Append(TOOL_ENABLE_OVERLAY, wxT("M_ENABLEOVERLAY"), wxT(""), wxITEM_CHECK);
	
	wxMenuItem* m_separator9 = view2DOverlayMenuItem->AppendSeparator();
	
	view2DMenuItem->Append( -1, wxT("M_OVERLAY"), view2DOverlayMenuItem );

	viewMenuItem->Append( -1, wxT("M_2D"), view2DMenuItem );
	
	wxMenuItem* m_separator8 = viewMenuItem->AppendSeparator();
	
	viewTransModeMenuItem = new wxMenu();
	viewTransModeOffMenuItem = viewTransModeMenuItem->Append(TOOL_TRANSMODE_OFF, wxT("M_OFF"), wxT(""), wxITEM_CHECK);
	
	viewTransModeHelmetOnlyMenuItem = viewTransModeMenuItem->Append(TOOL_TRANSMODE_HELMETONLY, wxT("M_HELMETONLY"), wxT(""), wxITEM_CHECK);
	
	viewTransModeAllMenuItem = viewTransModeMenuItem->Append(TOOL_TRANSMODE_ALL, wxT("M_ALL"), wxT(""), wxITEM_CHECK);
	
	viewMenuItem->Append( -1, wxT("M_TRANSMODE"), viewTransModeMenuItem );
	
	viewVisiblePartsMenuItem = new wxMenu();
	viewMenuItem->Append( -1, wxT("M_VISIBLEPARTS"), viewVisiblePartsMenuItem );
	
	m_menubar1->Append( viewMenuItem, wxT("M_VIEW") ); 
	
	optionsMenuItem = new wxMenu();

	optionsKeyShortcutsMenuItem = optionsMenuItem->Append(TOOL_SHORTCUTS, wxT("M_KEYSHORTCUTS"), wxT(""), wxITEM_CHECK);
	optionsBgColorMenuItem = optionsMenuItem->Append(TOOL_BGCOLOR, wxT("M_BGCOLOR"), wxT(""), wxITEM_CHECK);
	
	m_menubar1->Append( optionsMenuItem, wxT("M_OPTIONS") ); 
	
	languageMenuItem = new wxMenu();
	m_menubar1->Append( languageMenuItem, wxT("M_LANGUAGE") ); 
	
	helpMenuItem = new wxMenu();

	helpCheckUpdatesMenuItem = helpMenuItem->Append(TOOL_CHECKUPDATES, wxT("M_CHECKUPDATES"), wxT(""), wxITEM_CHECK);	
	helpAutoUpdateMenuItem = helpMenuItem->Append(TOOL_AUTOUPDATE, wxT("M_AUTOUPDATE"), wxT(""), wxITEM_CHECK);
	
	m_menubar1->Append( helpMenuItem, wxT("M_HELP") ); 
	
	this->SetMenuBar( m_menubar1 );
	
	wxBoxSizer* bSizer2;
	bSizer2 = new wxBoxSizer( wxVERTICAL );
	
	m_splitter1 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE|wxSP_NOBORDER );
	m_splitter1->Connect( wxEVT_IDLE, wxIdleEventHandler( MyFrame1::m_splitter1OnIdle ), NULL, this );
	
	m_panel1 = new wxPanel( m_splitter1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxVERTICAL );
	
	m_toolBar5 = new wxToolBar( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_HORIZONTAL ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(ZoomOutHS, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(ZoomInHS, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddSeparator(); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(112_ArrowCurve_Blue_Left_16x16_72, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(newskin, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(NewFolderHS, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddSeparator(); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(Rename, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(delete, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(clone, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddSeparator(); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(incres, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(decres, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddSeparator(); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(upload, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(import_from_mc, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar5->Realize();
	
	bSizer4->Add( m_toolBar5, 0, wxEXPAND, 5 );
	
	m_splitter2 = new wxSplitterWindow( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE|wxSP_NOBORDER );
	m_splitter2->SetSashGravity( 1 );
	m_splitter2->Connect( wxEVT_IDLE, wxIdleEventHandler( MyFrame1::m_splitter2OnIdle ), NULL, this );
	
	m_panel4 = new wxPanel( m_splitter2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_treeCtrl1 = new wxTreeCtrl( m_panel4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxTR_EDIT_LABELS|wxTR_FULL_ROW_HIGHLIGHT|wxTR_NO_LINES|wxTR_ROW_LINES|wxTR_SINGLE|wxTR_HIDE_ROOT );
	bSizer6->Add( m_treeCtrl1, 1, wxALIGN_CENTER_HORIZONTAL|wxEXPAND|wxRIGHT, 2 );
	
	m_panel4->SetSizer( bSizer6 );
	m_panel4->Layout();
	bSizer6->Fit( m_panel4 );
	m_panel5 = new wxPanel( m_splitter2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxVERTICAL );
	
	m_notebook1 = new wxNotebook( m_panel5, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
	m_panel22 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer17;
	bSizer17 = new wxBoxSizer( wxVERTICAL );
	
	wxArrayString m_choice1Choices;
	m_choice1 = new wxChoice( m_panel22, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choice1Choices, 0 );
	m_choice1->SetSelection( 0 );
	bSizer17->Add( m_choice1, 0, wxALL|wxEXPAND, 2 );
	
	m_panel22->SetSizer( bSizer17 );
	m_panel22->Layout();
	bSizer17->Fit( m_panel22 );
	m_notebook1->AddPage( m_panel22, wxT("T_SWATCHES"), true );
	m_panel23 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_notebook1->AddPage( m_panel23, wxT("RGBA"), false );
	m_panel24 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_notebook1->AddPage( m_panel24, wxT("HSLA"), false );
	
	bSizer7->Add( m_notebook1, 1, wxEXPAND, 5 );
	
	m_panel5->SetSizer( bSizer7 );
	m_panel5->Layout();
	bSizer7->Fit( m_panel5 );
	m_splitter2->SplitHorizontally( m_panel4, m_panel5, 378 );
	bSizer4->Add( m_splitter2, 1, wxEXPAND, 5 );
	
	m_panel1->SetSizer( bSizer4 );
	m_panel1->Layout();
	bSizer4->Fit( m_panel1 );
	m_panel2 = new wxPanel( m_splitter1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxVERTICAL );
	
	m_toolBar6 = new wxToolBar( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_HORIZONTAL ); 
	m_toolBar6->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(Save, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar6->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(SaveAllHS, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar6->AddSeparator(); 
	m_undoToolButton = m_toolBar6->AddTool( wxID_UNDO, wxT("tool"), wxBitmap( RESOURCE(Edit_UndoHS, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_redoToolButton = m_toolBar6->AddTool( wxID_REDO, wxT("tool"), wxBitmap( RESOURCE(Edit_RedoHS, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar6->AddSeparator(); 
	m_toolBar6->AddSeparator(); 
	perspectiveToolStripButton = m_toolBar6->AddTool( TOOL_PERSPECTIVE, wxT("tool"), wxBitmap( RESOURCE(Video, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_CHECK, wxEmptyString, wxEmptyString ); 
	orthographicToolStripButton = m_toolBar6->AddTool( TOOL_ORTHOGRAPHIC, wxT("tool"), wxBitmap( RESOURCE(image, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_CHECK, wxEmptyString, wxEmptyString ); 
	hybridToolStripButton = m_toolBar6->AddTool( TOOL_HYBRID, wxT("tool"), wxBitmap( RESOURCE(hybrid, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_CHECK, wxEmptyString, wxEmptyString ); 
	m_toolBar6->AddSeparator(); 
	m_toolBar6->AddTool( wxID_ANY, wxT("tool"), wxBitmap( RESOURCE(camera, png), wxBITMAP_TYPE_ANY ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString ); 
	m_toolBar6->AddSeparator(); 
	m_toolBar6->Realize();
	
	bSizer5->Add( m_toolBar6, 0, wxEXPAND, 5 );
	
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	bSizer5->Add( bSizer15, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer14;
	bSizer14 = new wxBoxSizer( wxVERTICAL );
	
	bSizer14->SetMinSize( wxSize( -1,22 ) ); 
	m_panel21 = new wxPanel( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel21->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
	
	wxBoxSizer* bSizer16;
	bSizer16 = new wxBoxSizer( wxVERTICAL );
	
	m_staticline1 = new wxStaticLine( m_panel21, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
	bSizer16->Add( m_staticline1, 0, wxEXPAND, 5 );
	
	m_staticText2 = new wxStaticText( m_panel21, wxID_ANY, wxT("Look down here for important things!"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText2->Wrap( -1 );
	bSizer16->Add( m_staticText2, 0, wxALL, 5 );
	
	m_panel21->SetSizer( bSizer16 );
	m_panel21->Layout();
	bSizer16->Fit( m_panel21 );
	bSizer14->Add( m_panel21, 1, wxEXPAND, 5 );
	
	bSizer5->Add( bSizer14, 0, wxEXPAND, 5 );
	
	m_panel2->SetSizer( bSizer5 );
	m_panel2->Layout();
	bSizer5->Fit( m_panel2 );
	m_splitter1->SplitVertically( m_panel1, m_panel2, 320 );
	bSizer2->Add( m_splitter1, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer2 );
	this->Layout();
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_splitter2->Connect( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, wxSplitterEventHandler( MyFrame1::m_splitter2OnSplitterSashPosChanging ), NULL, this );
	this->Connect(wxEVT_SHOW, wxShowEventHandler(MyFrame1::frameShow), NULL, this);
	m_treeCtrl1->Connect(wxEVT_COMMAND_TREE_SEL_CHANGING, wxTreeEventHandler(MyFrame1::m_treeCtrlItemChanged), NULL, this);
	m_toolBar6->Connect(wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MyFrame1::OnViewToolBarItemClicked), NULL, this);

	Connect(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame1::OnViewToolBarItemClicked), NULL, this);
	m_menubar1->Connect(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame1::OnViewToolBarItemClicked), NULL, this);
}

MyFrame1::~MyFrame1()
{
	// Disconnect Events
	m_splitter2->Disconnect( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, wxSplitterEventHandler( MyFrame1::m_splitter2OnSplitterSashPosChanging ), NULL, this );
	
	_repaintTimer->Stop();
	delete _repaintTimer;
}
